import { goodsForOrder } from "../../../data/goods";
const app=getApp();
Page({
  data: {
    orders: [
      {code:'44022919920338473',group:1,goods:goodsForOrder(2)},
      {code:'44022919920334573',group:2,goods:goodsForOrder(2)},
      {code:'44022919920332412',group:2,goods:goodsForOrder(2)}
    ],
  },
  toDetail(e) {
    console.log('toDetail:',e);
    app.gData.goodsForRefund=this.data.orders[e.detail.index].goods;
    wx.navigateTo({
      url: '/pages/usercenter/refund-detail/index',
    })
  }
})